import { createApp } from 'vue'
import App from './App.vue'

// Import global styles
import './styles/global.less'

// Import ECharts components globally or within components where needed
// If using globally (simpler for this example):
import * as echarts from 'echarts/core';
import { BarChart, PieChart, LineChart } from 'echarts/charts'; // Add LineChart if needed elsewhere
import {
  TitleComponent,
  TooltipComponent,
  GridComponent,
  LegendComponent,
  GraphicComponent, // Needed for custom text/icons
  DatasetComponent // Good practice
} from 'echarts/components';
import { CanvasRenderer } from 'echarts/renderers';

echarts.use([
  TitleComponent,
  TooltipComponent,
  GridComponent,
  LegendComponent,
  GraphicComponent,
  DatasetComponent,
  BarChart,
  PieChart,
  LineChart, 
  CanvasRenderer
]);


const app = createApp(App)



app.mount('#app')